package com.qixiucoding.learn_liu;

import java.io.FileInputStream;

/**
 * @Description TODO
 * @Author longhj
 * @Date 2021/11/21 星期日 16:12
 */
public class LearnCharaterStream {
    public static void main(String[] args) throws Exception {
        //FileInputStream为操作文件的字符输入流
        FileInputStream inputStream = new FileInputStream("d.txt");//内容为哥敢摸屎

        int len;
        while ((len=inputStream.read())!=-1){
            System.out.print((char)len);
        }

    }
}
